]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
thunderbolt: fix enroll-failed signal args order
authorChristian Kellner <christian@kellner.me>
Thu, 19 Apr 2018 12:13:20 +0000 (14:13 +0200)
committerChristian Kellner <christian@kellner.me>
Fri, 20 Apr 2018 09:27:11 +0000 (11:27 +0200)
The devices emitted (device, error) while the connected handler
was expecting (error, device). The former is more consistent
with the rest of the code (so change it to device, error).

js/ui/status/thunderbolt.js

index 6f563c1e05945a6f1edcf0c17c32181afafaa790..ebd1c3eb1e9e3af644bff4f04d9a4422bc99481f 100644 (file)
@@ -228,7 +228,7 @@ var AuthRobot = new Lang.Class({
 
     _onEnrollDone(device, error) {
        if (error)
-           this.emit('enroll-failed', error, device);
+           this.emit('enroll-failed', device, error);
 
        /* TODO: scan the list of devices to be authorized for children
         *  of this device and remove them (and their children and